#!/bin/sh

rm -rf src/lib/api/proto
mkdir src/lib/api/proto

protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto roadmap_api.proto 
protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto roadmap_data_state_api.proto
protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto roadmap_member_api.proto
protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto roadmap_data_api.proto
protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto roadmap_data_type_api.proto
protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto roadmap_qa_api.proto
protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto roadmap_rag_api.proto
protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto roadmap_plan_api.proto


protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto resource_api.proto
protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto resource_card_api.proto
protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto resource_exam_api.proto
protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto resource_exam_type_api.proto


protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto user_api.proto
protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto user_msg_api.proto
protoc -I proto/src/ -I proto/third_part/ --ts_out ./src/lib/api/proto user_msg_type_api.proto


protoc -I proto/src/notices -I proto/third_part/ --ts_out ./src/lib/api/proto notices_user.proto